﻿// <copyright file="MainPage.xaml.cs" company="Microsoft Corporation">
// Copyright (c) 2009 Microsoft Corporation All Rights Reserved
// </copyright>
// <author>Michael S. Scherotter</author>
// <email>mischero@microsoft.com</email>
// <date>2010-05-12</date>
// <summary>MainPage code behind</summary>

namespace DemoDeepZoom
{
    using System.Windows;
    using System.Windows.Controls;

    /// <summary>
    /// MainPage code behind
    /// </summary>
    public partial class MainPage : UserControl
    {
        /// <summary>
        /// Initializes a new instance of the MainPage class.
        /// </summary>
        public MainPage()
        {
            InitializeComponent();

            this.DeepZoom.ViewportChanged += new RoutedEventHandler(this.DeepZoom_ViewportChanged);
        }

        /// <summary>
        /// Deep Zoom Viewport Changed
        /// </summary>
        /// <param name="sender">the MultiScaleImage</param>
        /// <param name="e">the routed event arguments</param>
        private void DeepZoom_ViewportChanged(object sender, RoutedEventArgs e)
        {
            ////System.Diagnostics.Debug.WriteLine("Viewport Origin: {0}, Width {1}", this.DeepZoom.ViewportOrigin, this.DeepZoom.ViewportWidth);
        }
    }
}
